<template>
	<view class="container">
		<view class="header">
			<text class="title">线上诊疗服务</text>
		</view>
		<view class="grid-container">
			<u-grid :col="4" :border="false" :gutter="20">
				<u-grid-item @click="toorderHandle">
					<u-icon name="/static/image/toservice.png" :size="60"></u-icon>
					<view class="grid-text">待服务</view>
				</u-grid-item>
				<u-grid-item @click="orderingHandle">
					<u-icon name="/static/image/serviceing.png" :size="60"></u-icon>
					<view class="grid-text">服务中</view>
				</u-grid-item>
				<u-grid-item @click="orderedHandle()">
					<u-icon name="/static/image/serviced.png" :size="60"></u-icon>
					<view class="grid-text">服务完成</view>
				</u-grid-item>
				<u-grid-item @click="allorderHandle">
					<u-icon name="/static/image/allservice.png" :size="60"></u-icon>
					<view class="grid-text">全部服务</view>
				</u-grid-item>
			</u-grid>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		methods: {
			PreMedication() {
				uni.navigateTo({
					url: ''
				})
			},
			allorderHandle() {
				uni.navigateTo({
					url: '/pages/order/all'
				})
			},
			toorderHandle() {
				uni.navigateTo({
					url: '/pages/order/toservice'
				})
			},
			orderingHandle() {
				uni.navigateTo({
					url: '/pages/order/servicing'
				})
			},
			orderedHandle() {
				uni.navigateTo({
					url: '/pages/order/serviced'
				})
			},
		}
	}
</script>

<style>
	.container {
		box-shadow: 0 6rpx 16rpx rgba(0, 0, 0, 0.09);
		background-color: #ffffff;
	}

	.header {
		text-align: center;
	}

	.title {
		font-size: 36rpx;
		font-weight: bold;
	}

	/* 	.grid-container {
		margin-top: 20rpx;
	} */

	.grid-text {
		font-size: 28rpx;
		color: $u-type-info;
		text-align: center;
	}

	/* 可选：为图标和文本的容器添加一些样式 */
	u-grid-item {
		border: none !important;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		padding: 20rpx;
	}
</style>